home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d26
/
debugltr.arc
/
DEBUG.LTR
next >
Wrap
Text File
|
1990-06-08
|
4KB
|
85 lines
While we hate to admit it, every once in a while a product we sell needs some
minor improvements. Many times these improvements can be made by the end user
with less trouble and lost time than if he sent his disk back for a patch. In
recognition of the fact that not everybody is born knowing how to use Debug, a
very popular tool for patching .COM files, the following explanation is
offered.
The information in any given patch can be put into four categories :
A) The name of the file to be patched,
(represented below as "filename.COM")
B) Location at which a value that needs to be changed is found
A three or four digit hexadecimal address - represented below as LLLL (L
for location)
C) The value currently found at the location,
A two digit hexadecimal number - represented below as CC (C for current)
D) The new value with which we are going to replace the value currently
found at location LLLL.
Another two digit hexadecimal number - represented below as NN (N for
new)
All three of these values are expressed as hexadecimal values because that
is what Debug requires.
A typical way to patch a hypothetical file called filename.COM follows. Of
course you shouldn't actually do any of this until you have a real patch you
need to apply to a real program. We will step through the process of patching
this hypothetical file at the hypothetical address represented here by "LLLL".
We will explain how to change the current value, represented here by CC to the
new value, represented as NN.
1) Put a disk with DEBUG.COM in drive A
2) Put a disk with filename.COM in drive B
3) enter:
debug B:filename.com
When you hit the return (or enter) key, debug will prompt you with a "-".
4) enter eLLLL
Debug will respond with a line ending with LLLL: CC. Recall that LLLL
represents the address and CC represents the value currently found there.
(NOTE! If the value of CC put on the screen by Debug does not match the
value listed on the patch sheet as the old value for this location, do not
continue on with step 5. Instead, skip to step 7.)
If the value of CC shown on the screen by Debug is the same as the value
listed in the patch as the current one then continue with step 5.
5) enter NN
This will change the value at LLLL from CC (the current value) to NN (the
new value).
Debug will respond with another minus sign prompt, "-".
Repeat steps 4 and 5 above for any other locations LLLL in file
filename.COM, changing the current values CC to the new values NN
6) When Debug gives you another "-", enter a "w" to write your changes to
disk.
When Debug gives you another "-", enter a "q" to quit.
That's all there is to it!
7) It may be that you are DEBUGging the wrong file or have a different
version of filename.COM than the one for which the patch is intended.
In any event we want to leave this value unchanged. So in response to
Debug's prompt that ends with LLLL: CC, enter CC. That is, enter the same
value as the one already there.
8) When Debug gives you another "-", enter a "q" to quit.
9) When you get back to the operating system prompt, check to be sure you
were Debugging the right file. If you're sure you have the file name
right, then you probably have a different version of the program. Leave a
message to the SYSOP. Be sure to mention the FULL version number. In
most Borland products the full version number only appears in the logon
message that comes up on the screen when you load the program by typing in
the file name. If you're DEBUGging a Borland product he (that is, I) will
provide a solution.
Larry Kraft (76703,764)